const Order = require('../../model/order/Order')

function add(req,res){
  Order.create(req.body, (err,result)=>{
    if(err){
      res.json({
        code:0,
        msg: '购买失败'
    })  
    }else{
      res.json({
        code:1,
        msg: '购买成功'
    })
    }
  })
  
}
module.exports = add